<template>
      <div>
            <el-breadcrumb separator-class="el-icon-arrow-right">
                  <el-breadcrumb-item>商城管理</el-breadcrumb-item>
                  <el-breadcrumb-item>限时秒杀</el-breadcrumb-item>
            </el-breadcrumb>
            <el-button @click="add"  plain class="add" type="primary" size="small">添加</el-button>
            <tCon @manedit="edit" />
            <tTost :isshow="isshow" @isshow="esc" ref="mange" :isedit="isedit"/>
      </div>
</template>

<script>
import tCon from '../components/toseck/content.vue'
import tTost from '../components/toseck/tost.vue'
export default {
      data() {
            return {
                  isshow: false,
                  isedit:false
            };
      },
      methods: {
            esc(e) {
                //   console.log(e, 'eeeeeeeeeeeeeeeeee');
                  this.isshow = e
            },
             add(){
                  this.isshow = true
                  this.isedit=false;
            },
             edit(e){
                //   console.log(e,'id');
                  this.isshow=true;
                  this.isedit=true;
                  // console.log( this.$refs.people.lookup);
                  this.$refs.mange.lookup(e)
            }
      },
      components: {
            tCon,
            tTost
      },
}
</script>

<style scoped>
.add {
      margin: 6px 0px;
}
</style>
